package lesson01;

/**
 * 顺序打印线程名
 *
 * @author wileda
 * @date 2023/01/10  13:37
 */
public class Demo11 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() ->{
            System.out.println("a");
        });
        Thread t2 = new Thread(() ->{
            System.out.println("b");
        });
        Thread t3 = new Thread(() ->{
            System.out.println("c");
        });
        t3.start();
        t3.join();
        t2.start();
        t2.join();
        t1.start();
    }
}
